#include <iostream>
using namespace std;

void Swap(int* a, int* b)
{
	int tmp = *a;
	*a = *b;
	*b = tmp;
}

int main()
{
	int n;
	int a[30] = {0};
	cin >> n;
	for(int i = 0; i < n; i++)
	{
		cin >> a[i];
		int j = 0;
		for(j = i; j > 0; j--)
		{
			if(a[j] > a[j - 1])
			{
				Swap(&a[j], &a[j - 1]);
			}
		}
		
	}
	
	for(int i = 0; i < n; i++)
	{
		cout << a[i] << endl;
	}
	return 0;
}
